package cn.itcast.mapper;

import cn.itcast.pojo.CheckItem;
import cn.itcast.pojo.Permission;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author: peterChen
 * @date: 2019/8/16 16:18
 * @description: TODO
 * @version: 1.0
 */
public interface PermissionMapper {
    public Set<Permission> findPermissionsByRoleId(@Param("roleId") Integer roleId);


    public Page selectByContition(@Param("queryString") String queryString);

    public void add(Permission permission);

    public Permission findPermissionById(@Param("id") Integer id);

    public void edit(Permission permission);

    public long findPermissionByPermissionId(@Param("id") Integer id);

    public void delete(@Param("id") Integer id);

    public List<Permission> findAll();
}
